﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microhard.JHWorkflowTrans;

namespace Microhard.WebUI.Areas.Admin.Models
{
    public static class C6HtmlExtension
    {
        public static List<SelectListItem> GetAppID(this HtmlHelper helper)
        {
            List<SelectListItem> rtn = new List<SelectListItem>();
            var data = JHWorkflowTool.GetAppWithDJ();
            foreach (var d in data)
            {
                rtn.Add(new SelectListItem
                {
                    Text = d.AppName,
                    Value = d.AppID + "@" + d.DJSN
                });
            }
            return rtn;
        }
    }
}